<?php

// +----------------------------------------------------------------------

// | OneThink [ WE CAN DO IT JUST THINK IT ]

// +----------------------------------------------------------------------

// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.

// +----------------------------------------------------------------------

// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>

// +----------------------------------------------------------------------



namespace Home\Controller;

use OT\DataDictionary;



/**

 * 前台首页控制器

 * 主要获取首页聚合数据

 */

class IndexController extends HomeController {



	//系统首页

    public function index(){

        $id   = $_SESSION['onethink_home']['uid'];

        $num  = D('Message') ->showNum($id);

        $this ->assign('num',$num);

        $data = D('Index') -> showUid($id);

        $this ->assign('data',$data);

        $this->display();

    }

 	public function ajaxTiaoz(){
 		$uid = session('uid');
 		$info = D('Auth') ->showFinds($uid);
 		if($info){
 			$this ->ajaxReturn(1);
 		}else{
 			$this ->ajaxReturn("您还没有进行身份认证");
 		}
 	}

}